package com.yegs.jindie.service;


import com.yegs.jindie.entity.JobVo;
import com.yegs.jindie.entity.StoreException;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;

public interface JobService {

    public List<JobVo> findAll();

    @Transactional(rollbackFor = StoreException.class)
    public void save(JobVo job);


    @Transactional(rollbackFor = StoreException.class)
    public void triggerStatus(Long id,String states);

    @Transactional(rollbackFor = StoreException.class)
    public void del(Long id);

    @Transactional(rollbackFor = StoreException.class)
    void trigger(Long id);

    JobVo getJobByClassName(String jobClassName);

}
